<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	Tomcat1
	<%
		String str  = request.getSession().getId();  
	    request.setAttribute("session", str);
	    session.setAttribute("user", "aaa");
	%> 
</body>
</html>